﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;

namespace AveitWeb
{
    public class GestionSocio
    {
        public static DataTable ObtenerTodas()
        {
            SqlConnection cn = new SqlConnection();
            cn.ConnectionString = ConfigurationManager.ConnectionStrings["AVEIT"].ConnectionString;

            cn.Open();
            SqlCommand cmd = new SqlCommand("Select id_tipoDni, descripcion from TipoDocumento", cn);
            DataTable dt = new DataTable();
            dt.Load(cmd.ExecuteReader());
            cn.Close();
            return dt;
        }
    }
}